package manager
{
	import events.EventType;
	import events.GameDispatherEvent;
	import events.GameEvent;

	public class LevelManange
	{
		private static var instance:LevelManange;
		
		/**
		 *玩家最高关卡 
		 */
		private var _userLevel:int = 1;
		private var _curLevel:int = 1;

		public function LevelManange()
		{
			if(instance)throw new Error("Singerleton");
			instance = this;
		}
		
		/**
		 * current level of this game
		 */
		public function get userLevel():int
		{
			return _userLevel;
		}

		public static function getInstance():LevelManange{
			return instance ||=new LevelManange();
		}

		public function set userLevel(value:int):void
		{
			_userLevel = value;
		}

		/**
		 *当前所在关卡 
		 */
		public function get curLevel():int
		{
			return _curLevel;
		}

		/**
		 * @private
		 */
		public function set curLevel(value:int):void
		{
			_curLevel = value;
		}


	}
}